package com.dailyblue.java.cloud.commons.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;

@Data
public class Emp implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer empNo;
    private String ename;
    private String job;
    private Integer mgr;
    private String hireDate;
    private Double sal;
    private Double comm;
    private Integer deptNo;
    @TableLogic(delval = "0", value = "1")
    private Integer state;
    @TableField(exist = false)
    private Dept dept;
}
